
<%@ page import="com.surelution.projects.congress.Member" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'member.label', default: 'Member')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.suspend.confirm.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:form>
            <div class="dialog">
                <table>
                    <tbody>
                    <!-- 
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "id")}</td>
                            
                        </tr>
                     -->
                        
                        <tr class="prop">
                            <td valign="top" class="name">
                              <label for="level"><g:message code="member.endDate.label" default="End Date" /></label>
                            </td>
                            <td valign="top" class="value ${hasErrors(bean: memberInstance, field: 'endDate', 'errors')}">
                                <g:datePicker name="endDate" precision="day"/>
                            </td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.address.label" default="Address" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "address")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.extrolTel.label" default="Extrol Tel" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "extrolTel")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.gender.label" default="Gender" /></td>
                            
                            <td valign="top" class="value">${memberInstance?.gender?.title?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.level.label" default="Level" /></td>
                            
                            <td valign="top" class="value">${memberInstance?.level?.title?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.memberGroup.label" default="Member Group" /></td>
                            
                            <td valign="top" class="value"><g:link controller="memberGroup" action="show" id="${memberInstance?.memberGroup?.id}">${memberInstance?.memberGroup?.title}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.mobileNumber.label" default="Mobile Number" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "mobileNumber")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.name.label" default="Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.passportId.label" default="Passport Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "passportId")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.title.label" default="Title" /></td>
                            
                            <td valign="top" class="value"><g:link controller="jobTitle" action="show" id="${memberInstance?.title?.id}">${memberInstance?.title?.title}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="member.workOrganization.label" default="Work Organization" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: memberInstance, field: "workOrganization")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                    <g:hiddenField name="id" value="${memberInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="suspend" value="${message(code: 'default.button.suspend.label', default: 'Suspend')}"/></span>
            </div>
            </g:form>
        </div>
    </body>
</html>
